#include<stdio.h>

int main (void) {

	int i = 10, j = 1, k = 3;

	printf("Printing (decimal - d) addreses of variables - &\n");
	printf(" Variable 1: %d\n Variable 2: %d\n Variable 3: %d\n",
		&i, &j, &k);

	printf("Printing (hex - p) addreses of variables - &\n");
	printf(" Variable 1: %p\n Variable 2: %p\n Variable 3: %p\n",
		&i, &j, &k);

	printf("Size of...:\n");
	printf(" Variable 1: %d\n Variable 2: %d\n Variable 3: %d\n",
		sizeof(i), sizeof(j), sizeof(k));
	printf("NOTE: all 3 variables are of INT type!\n\n");
	
	//pointers
	//simple assig. to a pointer of int type the address of i
	int *pValue1 = &i;
	printf(" Pointer to an addres of Value1: %d\n", pValue1);
	//dereferencing pointers
	printf(" Dereference the pointer so we get the value of Variable1: %d\n",
		*pValue1);

 
	return 0;
}
